package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IClassificationActivityModel;
import com.wgts.wgts.mvp.model.imp.ClassificationActivityModel;
import com.wgts.wgts.mvp.presenter.IClassificationActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.ClassificationActivityPresenter;
import com.wgts.wgts.mvp.view.IClassificationActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class ClassificationActivityModule {

    private IClassificationActivityView view;

    public ClassificationActivityModule(IClassificationActivityView view) {
        this.view = view;
    }


    @Provides
    @ActivityScope
    public IClassificationActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IClassificationActivityModel provideModel(NetService netService){
        return new ClassificationActivityModel(netService);
    }

    @ActivityScope
    @Provides
    public IClassificationActivityPresenter providePresenter(IClassificationActivityModel model, IClassificationActivityView view){
        return new ClassificationActivityPresenter(model, view);
    }
}
